// Mission has ended...
// TODO: Make this pretty?

// Should be triggered in each client by a publicVariable.


HS_End_Mission= {
	diag_log format["Ending mission, received case %1.", (_this select 0)];

	// End the ACE Spectator script...
	ace_sys_spectator_exit_spectator= true;

	switch (_this select 0) do
	{
		case "INDFOR_WIN": {endMission "END1"};
		case "BLUFOR_WIN": {endMission "END2"};
		case "OPFOR_WIN": {endMission "END3"};
		case "CIV_DIES": {endMission "END4"};
		case "TRUCK_DIES": {endMission "END5"};
		// default {hint "Invalid Param  "+ (_this) + " so yeah."};
	};

}


